﻿using System;
using System.Collections.Generic;
using System.Text;
using Newtonsoft.Json;

namespace SplitViewOptions.Model
{
    public class TimeHistory
    {
        [JsonIgnore]
        public bool Check
        {
            set;
            get;
        }
        public DateTime Time
        {
            set;
            get;
        }

        public List<History> HistoryWeb
        {
            set;
            get;
        }

        public static TimeHistory Unencoding(string str)
        {
            return JsonConvert.DeserializeObject<TimeHistory>(str);
        }

        public override string ToString()
        {
            return JsonConvert.SerializeObject(this);

            //StringBuilder str=new StringBuilder();
            //foreach (var temp in HistoryWeb)
            //{
            //    str.Append(temp.ToString());
            //}
            //return base.ToString();
        }
    }
}